#include "TcpClass.h"

int main()
{
    TcpServer ts;
    TcpSocket tsock;
    initTcpServer(&ts,"0.0.0.0",9999,5);
    TcpServAccept(&ts,&tsock);
    char buff[1024];
	memset(buff,0,sizeof(buff));
    TcpSockRecv(&tsock,buff,sizeof(buff));
	TcpSockSend(&tsock,buff,strlen(buff));
	printf("Recv and Send: %s",buff);
    TcpSockClose(&tsock);
    TcpServClose(&ts);
    return 0;
}